<%@ page contentType="text/html; charset=utf-8" language="java" errorPage="" %>
<%@ page import="javax.naming.Context"%> 
<%@ page import="javax.sql.DataSource"%> 
<%@ page import="javax.naming.InitialContext"%> 
<%@ page import="java.sql.*"%> 
<%@page import="dataconn.dataconn;"%> 
<%
request.setCharacterEncoding("utf-8");
String ModuleID=request.getParameter("ModuleID");
if (ModuleID == null || ModuleID.equals(""))
{
out.print("参数错误！");
out.print("<a href='NewProject.jsp'>返回</a>");
return;
}
String ModuleName=request.getParameter("ModuleName");
dataconn con=new dataconn();
String sql="update TestModule set ModuleName='"+ModuleName+"' where ModuleID="+ModuleID;
con.executeUpdate(sql);
String sql0="select ProjectID from TestModule where ModuleID="+ModuleID;
ResultSet rs=con.executeQuery(sql0);
String ProjectID=rs.getString("ProjectID");
response.sendRedirect("ManageProject.jsp?ProjectID="+ProjectID);
%>